#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cmath>
#include<string>
using namespace std;


int main()
{
	for (int i = 1; i < 32; ++i)
	{
		string out = to_string(pow(2,i));
		if (out.find('.'))
		{
			cout << out << endl;
			cout << "i = " << i << endl;
		}
	}

	return 0;
}


int ret = 1;

int main1()
{
	int in;
	cin >> in;
	if (in % 2)
	{
		cout << -1 << endl;
		return 0;
	}

	int i = 31;
	while (i)
	{
		if (1 << i & in)cout << (1<<i) << ' ';
		--i;
	}


	return 0;
}